// 根据状态 配置相应的工具方法
import StatusBox from '@/components/ivew_conf/state_store'

function build(btnsConf, statusConf=[], orderStatus){
    const statusBox = new StatusBox(statusConf) 

    let btns = statusBox.getVal(orderStatus).formBtns || ['back'];
    let cache = []
    
    btns.forEach(btn =>{
        cache.push(btnsConf[btn])
    })
    return cache
}

export default build